/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package gr.anagnosg.general.utils;

import java.util.List;

/**
 *
 * @author anagnosg
 */
public class ListUtils {
    
    public static String concatListElements(List l , String string2Concate){
        String output=null;
        for(int i= 0 ; i < l.size() ; i++){
            if(i==0){
                output=l.get(i)+"";
            }
            else{
                output+=l.get(i)+""+string2Concate;
            }
        }
        return output;
    }
    
}
